﻿namespace Ficharts.Net.Examples.Code
{
    using System.Collections.Generic;

    public class ExampleData
    {
        public static List<DataItem> DemoData1()
        {
            List<DataItem> source = new List<DataItem>();

            source.Add(new DataItem { Label = "1月", Value = 279 });
            source.Add(new DataItem { Label = "2月", Value = 410 });
            source.Add(new DataItem { Label = "3月", Value = 325 });
            source.Add(new DataItem { Label = "4月", Value = 572 });
            source.Add(new DataItem { Label = "5月", Value = 629 });
            source.Add(new DataItem { Label = "6月", Value = 710 });
            source.Add(new DataItem { Label = "7月", Value = 489 });
            source.Add(new DataItem { Label = "8月", Value = 635 });
            source.Add(new DataItem { Label = "9月", Value = 750 });
            source.Add(new DataItem { Label = "10月", Value = 600 });
            source.Add(new DataItem { Label = "11月", Value = 760 });
            source.Add(new DataItem { Label = "12月", Value = 950 });

            return source;
        }

        public static List<DataItem> DemoData2()
        {
            List<DataItem> source = new List<DataItem>();

            source.Add(new DataItem { Label = "1月", Value = 279 });
            source.Add(new DataItem { Label = "2月", Value = -410 });
            source.Add(new DataItem { Label = "3月", Value = 325 });
            source.Add(new DataItem { Label = "4月", Value = -572 });
            source.Add(new DataItem { Label = "5月", Value = 629 });
            source.Add(new DataItem { Label = "6月", Value = -710 });
            source.Add(new DataItem { Label = "7月", Value = 489 });
            source.Add(new DataItem { Label = "8月", Value = -635 });
            source.Add(new DataItem { Label = "9月", Value = 750 });
            source.Add(new DataItem { Label = "10月", Value = -600 });
            source.Add(new DataItem { Label = "11月", Value = 760 });
            source.Add(new DataItem { Label = "12月", Value = -950 });

            return source;
        }

        public static List<Data> DemoData3()
        {
            var source = new List<Data>();

            source.Add(new Data { Label = "1月", ValueA = 2790, ValueB = -400 });
            source.Add(new Data { Label = "2月", ValueA = -4100, ValueB = -300 });
            source.Add(new Data { Label = "3月", ValueA = 3250, ValueB = -200 });
            source.Add(new Data { Label = "4月", ValueA = -5720, ValueB = -100 });
            source.Add(new Data { Label = "5月", ValueA = 6290, ValueB = -300 });
            source.Add(new Data { Label = "6月", ValueA = -710, ValueB = -400 });
            source.Add(new Data { Label = "7月", ValueA = 4890, ValueB = -600 });
            source.Add(new Data { Label = "8月", ValueA = -6350, ValueB = -800 });
            source.Add(new Data { Label = "9月", ValueA = 7500, ValueB = -600 });
            source.Add(new Data { Label = "10月", ValueA = -6000, ValueB = -400 });
            source.Add(new Data { Label = "11月", ValueA = 7600, ValueB = -350 });
            source.Add(new Data { Label = "12月", ValueA = -9500, ValueB = -300 });

            return source;
        }

        public static List<Data> DemoData4()
        {
            var source = new List<Data>();

            source.Add(new Data { Label = "1月", ValueA = 279, ValueB = 400 });
            source.Add(new Data { Label = "2月", ValueA = 410, ValueB = 300 });
            source.Add(new Data { Label = "3月", ValueA = 325, ValueB = 200 });
            source.Add(new Data { Label = "4月", ValueA = 572, ValueB = 100 });
            source.Add(new Data { Label = "5月", ValueA = 629, ValueB = 300 });
            source.Add(new Data { Label = "6月", ValueA = 710, ValueB = 400 });
            source.Add(new Data { Label = "7月", ValueA = 489, ValueB = 600 });
            source.Add(new Data { Label = "8月", ValueA = 635, ValueB = 800 });
            source.Add(new Data { Label = "9月", ValueA = 750, ValueB = 600 });
            source.Add(new Data { Label = "10月", ValueA = 600, ValueB = 400 });
            source.Add(new Data { Label = "11月", ValueA = 760, ValueB = 350 });
            source.Add(new Data { Label = "12月", ValueA = 950, ValueB = 300 });

            return source;
        }

        public static List<BubbleData> BubbleDatas()
        {
            var source = new List<BubbleData>();

            source.Add(new BubbleData { Label = "1月", Value = 279, Radius = 23 });
            source.Add(new BubbleData { Label = "2月", Value = 410, Radius = 32 });
            source.Add(new BubbleData { Label = "3月", Value = 325, Radius = 65 });
            source.Add(new BubbleData { Label = "4月", Value = 572, Radius = 25 });
            source.Add(new BubbleData { Label = "5月", Value = 629, Radius = 20 });
            source.Add(new BubbleData { Label = "6月", Value = 710, Radius = 5 });
            source.Add(new BubbleData { Label = "7月", Value = 489, Radius = 52 });
            source.Add(new BubbleData { Label = "8月", Value = 635, Radius = 45 });
            source.Add(new BubbleData { Label = "9月", Value = 750, Radius = 20 });
            source.Add(new BubbleData { Label = "10月", Value = 600, Radius = 45 });
            source.Add(new BubbleData { Label = "11月", Value = 760, Radius = 32 });
            source.Add(new BubbleData { Label = "12月", Value = 950, Radius = 30 });

            return source;
        }
    }
    public class DataItem
    {
        public string Label { get; set; }

        public decimal Value { get; set; }
    }

    public class Data
    {
        public string Label { get; set; }
        public decimal ValueA { get; set; }
        public decimal ValueB { get; set; }
    }

    public class BubbleData
    {
        public string Label { get; set; }
        public decimal Value { get; set; }
        public decimal Radius { get; set; }
    }
}